package com.coach.enums;


public enum UploadFilesTypeEnum {

	bbs("bbs", 1) , activity("activity", 2) ,
	group("group", 3) , record("record" , 4) , recordLine("recordLine" , 5);
	
	private int id ;
	private String Type ;
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getType() {
		return Type;
	}
	
	public void setType(String type) {
		Type = type;
	}
	
	UploadFilesTypeEnum(String type , int id){
		this.Type = type ;
		this.id = id ;
	}
	
	// 普通方法  
    public static String getTypeName(int index) {  
        for (UploadFilesTypeEnum c : UploadFilesTypeEnum.values()) {  
            if (c.getId() == index) {  
                return c.getType();  
            }  
        }  
        return null;  
    }
}
